/*
 * Visual algorithm.h
 *
 *  Created on: 2025��3��25��
 *      Author: dark lei
 */
#ifndef __CAMERA_H__
#define __CAMERA_H__
#include "zf_common_headfile.h"
//----------ͼ����------------
#define use_num     2   //1���ǲ�ѹ����2����ѹ��һ��
#define Height MT9V03X_H/use_num            // ͼ��ĳ� ��
#define Weight MT9V03X_W/use_num            // ͼ��Ŀ� ��
#define IMG_BLACK     0X00      //��
#define IMG_WHITE     0Xff      //��
#define white_pixel 255
#define black_pixel 0
                      
//----------------------------------��������----------------
void Left_Add_Line(int x1,int y1,int x2,int y2);
void Right_Add_Line(int x1,int y1,int x2,int y2);
void Find_Down_Point(int start,int end);
void Draw_Line(int startX, int startY, int endX, int endY);
void Find_Up_Point(int start,int end);
void Lengthen_Left_Boundry(int start,int end);
void Lengthen_Right_Boundry(int start,int end);
int Continuity_Change_Left(int start,int end);
int Continuity_Change_Right(int start,int end);
int Monotonicity_Change_Left(int start,int end);
int Monotonicity_Change_Right(int start,int end);
int Find_Left_Down_Point(int start,int end);
int Find_Left_Up_Point(int start,int end);
int Find_Right_Down_Point(int start,int end);
int Find_Right_Up_Point(int start,int end);
void K_Draw_Line(float k, int startX, int startY,int endY);
void K_Add_Boundry_Left(float k,int startX,int startY,int endY);
void K_Add_Boundry_Right(float k,int startX,int startY,int endY);

#endif
